package com.pay.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pay.entity.Merchant;
import com.pay.utils.BasePage;
import com.pay.utils.Login;
import com.pay.utils.ResponseData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Peng
 * @since 2018-12-06
 */
public interface IMerchantService extends IService<Merchant> {

	/**
	 * 登录
	 * @param login
	 * @param request
	 * @return
	 */
	Merchant checkLogin(Login login);

	void getList(Merchant merchant, BasePage<Merchant> page);

	Merchant getByUsername(String username) ;
	
	ResponseData doMerchantAdd(Merchant merchant);

	ResponseData doMerchantEdit(Merchant merchant);

	ResponseData doMerchantSwitch(Integer id);

}
